﻿using Microsoft.Extensions.DependencyInjection;
using System;
using Volo.Abp.AutoMapper;
using Volo.Abp.Modularity;
using WenABP.Customer.Application.Contracts;
using WenABP.Customer.Domain;

namespace WenABP.Customer.Application
{
    [DependsOn(typeof(WenABPCustomerApplicationContractsMoudule),
        typeof(WenABPCusomerDomainMoudule),
        typeof(AbpAutoMapperModule))]
    public class WenABPCustomerApplicationModule:AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            context.Services.AddAutoMapperObjectMapper<WenABPCustomerApplicationModule>();

            Configure<AbpAutoMapperOptions>(options => 
            {
                options.AddMaps<WenABPCustomerApplicationModule>();
            });
        }
    }
}
